<?php

class SearchForm extends CFormModel
{

    //put your code here
    public $keyword;
    public $category_id;

    public function rules()
    {
        return array(
            // name, email, subject and body are required
            array('keyword', 'required'),
            array('category_id','required')
        );
    }

    public function attributeLabels()
    {
        return array(
            'keyword' => 'Từ khóa',
        );
    }
}